<?php

class Zax_Module_Cache
{	
	public function __set($var,$value)
	{
		$this->$var = $value;
	}
	
	public function __get($var)
	{
		$cache_file = CONF_ZAX_TMP_DIR.'/'.abs(crc32(ZAX_DATA_PATH)).'.'.md5(ZAX_ID.$var);
		if(is_readable($cache_file))
			return $this->$var = unserialize(file_get_contents($cache_file));
	}
}